import request from "@/utils/request";
// 查询入库单列表
export function getRkList(query) {
  return request({
    url: "/quality/warehouse/list",
    method: "get",
    params: query,
  });
}

export function addRk(data) {
  return request({
    url: "/quality/warehouse",
    method: "post",
    data,
  });
}
export function editRk(data) {
  return request({
    url: "/quality/warehouse",
    method: "put",
    data,
  });
}
export function delRk(id) {
  return request({
    url: "/quality/warehouse/" + id,
    method: "delete",
  });
}
//生产入库单
export function shengchengRk(query) {
  return request({
    url: "/quality/warehouse/amend",
    method: "get",
    params:query
  });
}
//入库功能
export function rukuRk(data) {
  return request({
    url: "/quality/warehouse/editStatus",
    method: "put",
    data
  });
}
//导出
export function exportRk(query) {
  return request({
    url: "/quality/warehouse/export",
    method: "get",
    params:query
  });
}